<div class='span12'>
	<!-- HEADER -->
	<div class='row-fluid'>
		<div class='span12'>
			<div class='page-header'>

				<h1 class="span8">
					<i class='icon-bullhorn'></i> <span>EMAIL TEMPLATE</span>
				</h1>
			</div>
		</div>
	</div>

	<!-- END OF HEADER -->

	<div class='row-fluid'>
		<div class="span12 box bordered-box blue-border"
			style="margin-bottom: 0;">
			<div class="box-header blue-background">
				<div class="title">Email Template</div>
				<div class="actions">
					<a href="#" class="btn box-remove btn-mini btn-link"><i
						class="icon-remove"></i> </a> <a href="#"
						class="btn box-collapse btn-mini btn-link"><i></i> </a>
				</div>
			</div>
			<div class="box-content">
				<?php if(Session::get('message')) {?>
				<p>
					<span class="text-danger">
						<div class="alert alert-info">
							<?php echo Session::get('message');?>
						</div>
					</span>
				</p>
				<?php }?>
				<form accept-charset="<?= Settings::get('en','charecter_set');?>" action="<?= URL::current();?>"
					class="form form-horizontal" method="post">

					<div class="control-group">
						<label class="control-label">Category Title <span
							class="text text-error">*</span>
						</label>
						<div class="controls">

							<select class="input-xlarge" name="email_tempalte"
								onchange="this.form.submit()">
								<option value="" selected="selected">-- -- --selecte-- -- --</option>
								<?php foreach($template as $template):?>
								<option value="<?= $template->id;?>">
									<?= $template->title;?>
								</option>
								<?php endforeach;?>

							</select>
						</div>
					</div>
				</form>

			</div>

			<?php if (isset($tmp['info']->id)) { ?>


			<form accept-charset="UTF-8" action="<?= URL::current();?>"
			class="form form-horizontal" method="post">
			<div class="box-content">
			
			
					<div class="control-group">
					<label class="control-label">Description
						</label>
						<div class="controls">
							<div class="span12 box">
							
							<div class="box-content">
								<!--  -->
								<textarea class="span12 wysihtml5"  id="description" name="description" rows="10" placeholder="Some text here..."><?= $tmp['info']->description;?> </textarea>

							

							</div>
						</div>
						<!-- 	<textarea class="input-xxlarge" rows="10"
								placeholder="Meta Description" name="description"
								id="summernote">
								<?= $tmp['info']->description;?>
							</textarea> -->
						</div>

					
					</div>




					<div class="form-actions">
						<input type="hidden" name="tmpID" id="tmpID"
							value="<?= $tmp['info']->id;?>">
						<button class="btn btn-primary" type="submit" name='btn'
							value="save"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>
							<i class="icon-save"></i> Save
						</button>
						<button class="btn" type="submit"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>Cancel</button>
					</div>

				</div>
			</form>
			<?php }?>



		</div>
	</div>
</div>

<!-- END OF CONTENT -->
</div>







